namespace Maple.Branch.AuthServer
{
    using Base;
    using Consts;
    using Localizations;
    using Volo.Abp.Localization;
    using Volo.Abp.Modularity;
    using Volo.Abp.VirtualFileSystem;

    [DependsOn(typeof(BranchCommonModule))]
    public class AuthServerCommonModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpVirtualFileSystemOptions>(options =>
            {
                options.FileSets.AddEmbedded<AuthServerCommonModule>(typeof(AuthServerCommonModule).Namespace);
            });

            Configure<AbpLocalizationOptions>(options =>
            {
                options.Resources
                    .Add<AuthServerLocalResource>(defaultCultureName: AuthServerConsts.DefaultCultureName)
                    .AddVirtualJson("/Localizations/AuthServerResources");
            });
        }
    }
}
